package com.dongrj.framework.web;


import com.dongrj.framework.web.utils.MarketResponseEntity;

/**
 * @author dongrongjun
 * @date 2021/01/25
 */
public interface HttpCallBack {

    /**
     * 请求成功
     *
     * @param responseEntity 结果
     */
    void success(MarketResponseEntity<String> responseEntity);


    /**
     * 请求失败
     *
     * @param responseEntity 结果
     */
    void fail(MarketResponseEntity<String> responseEntity);

    /**
     * 短信发送异常
     *
     * @param e 异常信息
     */
    void exception(MarketResponseEntity<String> responseEntity, Exception e);
}
